<?php


namespace app\index\model;


use app\index\model\Base;

class CommentList extends Base
{
    protected $pk = 'id';
    public function getUser()
    {
        return $this->belongsTo('app\user\model\User','get_u_id','u_id');
    }
    public function sendUser()
    {
        return $this->belongsTo('app\user\model\User','send_u_id','u_id');
    }
    public function commentsXh(){
        return $this->hasMany('CommentsXh','cl_id','id');
    }
}